package com.cl.ks.service;


import com.cl.ks.entity.SysSourceMappingTableField;
import com.cl.ks.repository.SysSourceMappingTableFieldRepository;
import com.cl.mvc.service.BaseService;
import org.springframework.stereotype.Service;

@Service
public class SysSourceMappingTableFieldService extends BaseService<SysSourceMappingTableField> {
    protected SysSourceMappingTableFieldService(SysSourceMappingTableFieldRepository SysSourceMappingTableFieldRepository) {
        super(SysSourceMappingTableFieldRepository);
    }
//
//    public Page<SysSourceMappingTableField> page(SysSourceMappingTableField entity, String auth) {
//        Page<SysSourceMappingTableField> all = repository.findAll(buildSpecification(entity).and(buildPowerSpecification(auth)), PageRequest.of(entity.getPageNumber() - 1, entity.getPageSize()));
//        for (SysSourceMappingTableField sysSourceMappingTableField : all.getContent()) {
//            sysSourceMappingTableField.setTableField(sysSourceMappingTableField.getTableName() + "_" + sysSourceMappingTableField.getTableField());
//        }
//        return all;
//    }

}
